﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Login Form</title>
    <link href="Css/style_login.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("input[JNS=txtUserName]").focus();
        });
    </script>
    
</head>
<body background="Images/bglogin.gif">
    <form id="form1" runat="server">
    
<div class="box_login">
    <div class="title_login"></div>
    <div class="form_login">        
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="35%" valign="middle" align="right" class="text_login">Tên đăng nhập:</td>
            <td width="65%" valign="middle" align="left" class="text_login">
                <asp:TextBox ID="txtUserName" JNS="txtUserName" runat="server" CssClass="input_form" Width="145"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtUserName"
                    ErrorMessage="Nhập tên đăng nhập"
                    SetFocusOnError="True"
                    Display="Dynamic">*</asp:RequiredFieldValidator>
            
            </td>
          </tr>
          <tr>
            <td valign="middle" align="right" class="text_login">Mật khẩu:</td>
            <td  valign="middle" align="left" class="text_login">
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="input_form" Width="145"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                    ControlToValidate="txtPassword"
                    ErrorMessage="Nhập mật khẩu"
                    SetFocusOnError="True"
                    Display="Dynamic"
                    InitialValue="">*</asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td class="text_login_2" valign="middle" align="left"><asp:Button ID="btnLogin" 
                    runat="server" Text="Đăng nhập" CssClass="btn_login" onclick="btnLogin_Click" /></td>
          </tr>
          <tr>
            
            <td class="text_login_links" valign="middle" align="left" colspan="2" style="padding-left:30px;">
            <asp:Label ID="lblLoginFail" runat="server" Text="Tên đăng nhập hoặc mật khẩu chưa chính xác. <br> Hãy nhập lại."
                Visible="False"></asp:Label>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true" DisplayMode="BulletList"
                ShowSummary="False" />            
            
            </td>
          </tr>
    </table>
                                       

    </div>
</div>    
                                 
</form>
</body>
</html>

